package com.smarthome.core.housemanager;

import java.util.List;

import com.smarthome.domain.bean.ShBuilding;
import com.smarthome.domain.vo.boss.Combobox;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;

/**
 * 
 * @author dhc
 * @Date 2015-09-14
 *@title 楼栋管理
 */
public interface BuildingManagerService {
	
	/**
	 * @param building
	 * @param helper
	 * @return 
	 */
	DataGrid getDataGrid(ShBuilding building,PageHelper helper);
	
	/**
	 * 
	 * @param building
	 * @return
	 */
	List<ShBuilding> queryShBuildings(ShBuilding building);
	
	/**
	 * @param id
	 * @title 根据小区id，获取小区楼栋信息
	 */
	List<ShBuilding> queryShBuildingsByResidenceId(Long residenceId);
	
	/**
	 * @param residenceId
	 * @title 根据小区id，获取楼获取楼栋下拉框
	 */
	List<Combobox> queryComboboxByResidenceId(Long residenceId);
	
	ShBuilding querybuildingById(Long id);
	/**
	 * 
	 * @param building
	 * @return
	 */
	int add(ShBuilding building);
	
	/**
	 * @param building
	 * @return
	 */
	int edit(ShBuilding building);
	
	/*
	 */
	int delte(Long id);
	
	/**
	 * @param building
	 * @return 重名验证， 返回true 重名、false 不重名
	 */
	boolean isRepeat(ShBuilding building);
	
}
